<!-- $Id: goods_type_info.htm 14216 2008-03-10 02:27:21Z testyang $ -->

{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,validator.js"}
<div class="main-div">
  <form action="" method="post" name="theForm" onsubmit="return validate();">
    <table cellspacing="1" cellpadding="3" width="100%">
      <tr>
        <td class="label">优惠类型:</td>
        <td><input type="text" name="type_name" value="{$coupon_info.type_name}" size="40" />
        {$lang.require_field}</td>
      </tr>
      <tr>
        <td class="label">类型标识:</td>
        <td>
          <input type="text" name="type_code" value="{$coupon_info.type_code}" size="40" />
        </td>
      </tr>
            <tr>
        <td class="label">是否免邮:</td>
          <td>
            <input type="radio" name="is_free" value="0" {if $coupon_info.is_free neq 1} checked="true" {/if}> 否 
            <input type="radio" name="is_free" value="1" {if $coupon_info.is_free eq 1} checked="true" {/if}> 是
          </td>
      </tr>
      <tr>
        <td class="label">折扣:</td>
        <td>
          <input type="text" name="discount" value="{ $coupon_info.discount}" size="40" />
        </td>
      </tr>
      <tr>
        <td class="label">优惠卷说明:</td>
        <td>
          <textarea name="coupon_note" id="coupon_note" cols="30" rows="10" style='width: 280px;'>{$coupon_info.coupon_note}</textarea>
        </td>
      </tr>

      <tr align="center">
        <td colspan="2">
          <input type="hidden" name="type_id" value="{$coupon_info.type_id}" />
          <input type="submit" value="{$lang.button_submit}" class="button" />
          <input type="reset" value="{$lang.button_reset}" class="button" />
          <input type="hidden" name="act" value="post" />
        </td>
      </tr>
    </table>
  </form>
</div>

<script type="text/javascript">
<!--
{literal}
onload = function() {
  document.forms['theForm'].elements['cat_name'].focus();
  startCheckOrder();
}

function validate()
{
  var validator = new Validator('theForm');
  validator.required('cat_name', type_name_empty);

  return validator.passed();
}
{/literal}  
//-->
</script>

{include file="pagefooter.htm"}
